package com.runa.protocol.dto;

import com.runa.protocol.enums.DtuModel;
import lombok.Getter;

/**
 * @author zhuj
 */
public abstract class DtuReportAck implements IInterData<byte[]> {

    protected byte[] data;

    @Getter
    protected String addr;

    public static DtuReportAck createAck(DtuModel model, String id) {
        switch (model) {
            case HongDian7710:
                return new DtuHDRegisterAck(id);
            default:
        }
        return null;
    }

    @Override
    public byte[] getData() {
        return data;
    }

}
